// pages/cooperation/com/com-info/com-info.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    model: {
      type: Object,
      default: {}
    }
  },

  options: {
    styleIsolation: "apply-shared",
    addGlobalClass: true,
  },

  /**
   * 组件的初始数据
   */
  data: {
    current: 0,
  },

  observers: {
    model(value) {
      if (!value) return;

      this.setData({ current: 0 })
    }
  },

  /**
   * 组件的方法列表
   */
  methods: {
    handleChange(e) {
      this.setData({
        current: e.detail.current,
      });
    },
  }
})
